/*
 * topological-hex, a program to compute combinatorial hexahedral meshes.
 *
 * Copyright (C) <2018> <Université catholique de Louvain (UCL), Belgique>
 *
 * List of the contributors to the development, description and complete
 * License: see LICENSE file.
 *
 * This program (topological-hex) is free software:
 * you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program (see COPYING file).  If not,
 * see <http://www.gnu.org/licenses/>.
 */

#ifndef COMPATIBILITY_H_
#define COMPATIBILITY_H_

#include "types.h"
#include <stdbool.h>

/**
 * @return True if two hexahedra are compatible, false otherwise.
 */
bool hex_compatibility(const vertex_index *a, const vertex_index *b);

/**
 * Reorders the vertices of a quadrangle to allow comparison by equality.
 *
 * @param [in, out] quad
 *
 * @return True if the orientation of the quad was preserved.
 */
bool reorder_quad(vertex_index *quad);

#endif
